<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<meta name="keywords" content="{$SEO['keyword']}">
<meta name="description" content="{$SEO['description']}">
<link href="{CSS_PATH}news.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}guestbook.css" rel="stylesheet" type="text/css" />
</head>
<body class="GBook">
{template "content","block-header"}
<div class="Main">
    <div class="List _float">
        <div class="path">
            <a href="{siteurl($siteid)}"><b>网站首页</b></a><span> &gt; </span>
            <a href="{APP_PATH}index.php?m={ROUTE_M}&siteid={$siteid}">留言板</a><span> &gt; </span>留言列表
        </div>
        <div class="cbox">
            <div class="nav-gb">
                <a href="/index.php?m=guestbook&c=index&a=register"><img src="{IMG_PATH}web/guest_write.gif" /></a>
                <a href="/index.php?m=guestbook&c=index&siteid={$siteid}"><img src="{IMG_PATH}web/guest_all.gif" /></a>
            </div>
            <table border="0" width="100%" class="title">
                <tr>
                    <td width="12" class="icon"><img src="{IMG_PATH}web/icon3.png" /></td>
                    <td class="name">默认分类</td>
                    <td align="right" class="more">
                        <a href="{APP_PATH}index.php?m=guestbook&c=index&a=list_type&type_id=0&siteid={$siteid}" title="查看更多"><img src="{IMG_PATH}web/more12.png" /></a>
                    </td>
                </tr>
            </table>
            <div class="glist">
                <div class="item">
                    {pc:guestbook action="lists" typeid="0" siteid="$siteid"  order="desc" num="5" return="dat"}
                    {loop $dat $v}
                    <table width="100%" border="0">
                        <tr>
                            <td width="25%">姓名：{$v[name]}</td>
                            <td width="35%">性别：{$v[sex]}</td>
                            <td>时间：{date('Y-m-d H:i:s',$v[addtime])} </td>
                        </tr>
                        <tr>
                            <td colspan="4"><span><b>留言内容：</b>&nbsp;{$v[introduce]}</span></td>
                        </tr>
                        <tr>
                            <td colspan="4"><span class="huifu"><b>管理员回复：</b>&nbsp;{$v[reply]}</span></td>
                        </tr>
                    </table>
                    {/loop}
                    {/pc}
                </div>
            </div>
            {pc:link action="type_lists" listorder="desc" siteid="$siteid"}
            {loop $data $type_v}
            <div class="bk-20"></div>
            <table border="0" width="100%" class="title">
                <tr>
                    <td width="12" class="icon"><img src="{IMG_PATH}web/icon3.png" /></td>
                    <td class="name">{$type_v[name]}</td>
                    <td align="right" class="more">
                        <a href="{APP_PATH}index.php?m=guestbook&c=index&a=list_type&type_id={$type_v[typeid]}&siteid={$siteid}" title="查看更多"><img src="{IMG_PATH}web/more13.png" /></a>
                    </td>
                </tr>
            </table>
            <div class="glist">
                <div class="item">
                    {pc:guestbook action="lists" typeid="$type_v[typeid]" siteid="$siteid"  order="desc" num="5" return="dat"}
                    {loop $dat $v}
                    <table width="100%" border="0">
                        <tr>
                            <td width="30%">姓名：{$v[name]}</td>
                            <td width="30%">性别：{$v[sex]}</td>
                            <td>时间：{date('Y-m-d H:i:s',$v[addtime])} </td>
                        </tr>
                        <tr>
                            <td colspan="2">留言内容：&nbsp;{$v[introduce]}</td>
                            <td colspan="2"><span style="color:#F00">管理员回复：</span>&nbsp;{$v[reply]}</td>
                        </tr>
                    </table>
                    {/loop}
                    {/pc}
                </div>
            </div>
            {/loop}
            {/pc}
        </div>
        <div class="_clear"></div>
    </div>
    <div class="Side _float2r">
        <div class="ad-1">
            <script language="javascript" src="{APP_PATH}index.php?m=poster&c=index&a=show_poster&id=10"></script>
        </div>
        <div class="bk-10"></div>
        <div class="box-side _float2r" style="position:relative;">
            <div class="flower"></div>
            <div class="box-hotel">
                <table border="0" width="100%" class="title">
                    <tr>
                        <td width="12" class="icon"><img src="{IMG_PATH}web/icon3.png" /></td>
                        <td class="name">热门酒店推荐</td>
                        <td align="right" class="more"></td>
                    </tr>
                </table>
                <div class="plist">
                    {pc:content action="position" posid="12"  order="listorder DESC" thumb="1" num="4"}
                        {loop $data $r}
                        <a href="{$r[url]}" target="_blank" title="{$r[title]}">
                            <img src="{thumb($r['thumb'],214,0)}" />
                            <label>{str_cut($r[title],45,'')}</label>
                        </a>
                        {if $n < count($data)}
                        <div class="line2"></div>
                        {/if}
                        {/loop}
                    </ul>
                    {/pc}
                </div>
            </div>
        </div>
    </div>
    <div class="_clear"></div>
</div>
{template "content","block-footer"} 
</body>
</html>
